package ui.student_ui;

import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;

@SuppressWarnings("serial")
public class SelectPublicPanel extends SelectCoursePanel{
	private StudentPicPath path = new StudentPicPath();
	@Override 
	protected void paintComponent(Graphics g){
		super.paintComponent(g);
		BufferedImage im = null;
		try{
			im = ImageIO.read(new File(path.getPublicPath()));
		}catch(IOException e){
			e.printStackTrace();
		}
		g.drawImage(im,0, 0, this.getWidth(), this.getHeight(), null);
	}
}
